package nz.co.album.converse.method;

import nz.co.album.converse.Address;
import nz.co.album.converse.Message;
import nz.co.album.converse.Method;
import nz.co.album.converse.address.SMSAddress;
import nz.co.album.converse.connector.SMSConnector;

public class SMS implements Method {

	private SMSConnector connector;
	
	public SMS() {
		connector = new SMSConnector();
	}
	
	public void sendMessage(Address address, Message message) {
		connector.sendSMS(((SMSAddress) address).getMobileNumber(), message.toString());
	}

}
